package com.jiyun.controller;

import com.jiyun.feign.CourseFeign;
import com.jiyun.vo.ResponseBean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("course")
public class CourseController {
    @Resource
    private CourseFeign courseFeign;
    /**
     * 根据培训id查询课程
     * @param id
     * @return
     */
    @RequestMapping("findCourseByTraining")
    private ResponseBean findCourseByTraining(@RequestParam Integer id){
        return courseFeign.findCourseByTraining(id);
    }
}
